package org.bao.bestmatch.model;


/**
 * pair of TFT & CF.It contains ref. to a pair of TFT & CF and their NG number.
 * @author baoxiwu<bb@feijiao.info>,Cell&Module,BOE DT
 * @version 0.9.0
 * @since 2010-11-19
 * @license LGPL
 * 
 */
public class TFT_CFPair {
	private Module tft = null;
	private Module cf = null;
	//NG number
	private int ng = 0;
	
	public TFT_CFPair(Module tft, Module cf, int ng){
		this.tft = tft;
		this.cf = cf;
		this.ng = ng;
	}

	
	public Module getTFT() {
		return this.tft;
	}

	public void setTFT(Module tft) {
		this.tft = tft;
	}

	public Module getCF() {
		return this.cf;
	}

	public void setCF(Module cf) {
		this.cf = cf;
	}

	public int getNG() {
		return this.ng;
	}

	public void setNG(int ng) {
		this.ng = ng;
	}
	
	public int size(){
		return this.getTFT().size();
	}
	
	
	//TODO FOR TESTING ONLY,IGNORE THIS IN PRODUCTION.
	public String toString(){
		return "\t" + this.getTFT() + "\r\n\t" + this.getCF() + "\r\n\tNG = " + this.getNG() + "\r\n\r\n";
	}
}
